package com.settlement.system.model.query;

import com.settlement.system.common.base.BasePageQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 用户分页查询对象
 *
 * @author haoxr
 * @since 2022/1/14
 */
@Schema
@Data
public class OrderPageQuery extends BasePageQuery {

    @Schema(description = "表名")
    private String tableName;

    @Schema(description = "账单月份")
    private String billMonth;

    @Schema(description = "原始主订单号")
    private String sourcePreformMainNo;

    private String linkNo;

    // 店铺ID
    @Schema(description = "店铺ID")
    private Long storeId;
    /**
     * 电商平台店铺编码
     */
    @Schema(description = "电商平台店铺编码")
    private String platformStoreCode;

    @Schema(description = "业务日期查询开始日期")
    private String startDate;

    @Schema(description = "业务日期结束结束日期")
    private String endDate;

    /**
     * 辅助查询字段
     */
    @Schema(description = "表名列表")
    private List<String> tableNameList = new ArrayList<>();

    @Schema(description="开始月份")
    @NotBlank(message = "开始月份不能为空")
    private String startMonth;

    @Schema(description="结束月份")
    @NotBlank(message = "结束月份不能为空")
    private String endMonth;

    private List<String> orderIdList;
    // 分页查询用到的参数
    private List<String> idList;
}
